<?php 
$currentUrl = $this->Html->url( null, true );
?>
<div id="header" class="<?php if(!empty($userCurrent)) echo 'blueBar-user'; else echo 'blueBar'; ?>">
    <div id="header-content">
		<div id="logo">
            <label><a class="<?php echo $this->Link->selectedMenu($currentUrl,array('Home','home'));?>" href="/Home/index">Chuyên Gia</a></label>
            <label><a class="<?php echo $this->Link->selectedMenu($currentUrl,array('Online','online'));?>" href="<?php if($userCurrent['group_id'] == 2){?>/Consultants/index<?php }else{?># <?php }?>">Trang Cá Nhân</a></label>
        </div>
        <div id="acc">
       <?php if(!empty($userCurrent)){?>
            <div style="float: left; width: 5%;"><img src="<?php echo $userCurrent['avata']; ?>" width="25px" height="25px" /></div>
            <div style="margin: 5px 0px 0px 20px; float: left;">
                <?php
                    if($userCurrent['group_id'] == 2) 
                        echo $this->Html->link($userCurrent['username'], array('base' => false,'controller' => 'Consultants', 'action' => 'index'));
                    else 
                        echo '<a href="javascript:;">'.$userCurrent['username'].'</a>';
                ?>
                <a href="/UsersNew/index">Riêng tư</a>
                <?php echo $this->Html->link('Thoát', array('base' => false,'controller' => 'Users', 'action' => 'logout_font_end')); ?>
            </div>
        <?php }?>
        </div>
		<div id="header-c">
            
        </div>
    </div>
</div>